//
//  AIUnityInstance.h
//  MiaMind
//
//  Created by Vill on 2023/12/11.
//

#import <Foundation/Foundation.h>
#include <UnityFramework/UnityFramework.h>

NS_ASSUME_NONNULL_BEGIN

@interface AIUnityInstance : NSObject

+ (instancetype)instance;

@property (nonatomic, strong) UnityAppController *unityAppController;
@property (nonatomic, strong) UnityFramework *ufw;

// 初始化
- (void)initUnity;
- (void)initUnityWithFrame:(CGRect)rect;

- (void)pause:(BOOL)isPause;

- (BOOL)unityIsInitialized;
- (void)showUnityView;
- (void)showNativeView;

//游戏物体名称  方法名称  参数
- (void)sendMessageToGOWithName:(NSString *)goName functionName:(NSString *)name message:(NSString *)msg;


@end

NS_ASSUME_NONNULL_END
